/*
 * Tela Inicial
 */

/*
 * Tela1.java
 *
 * Created on 08/06/2010, 16:18:11
 */
package View;

import Controller.ControlaTelas;
import Model.Filme;
import java.util.Vector;

/**
 *
 * @author mil
 */
public class Tela1 extends javax.swing.JFrame {

    Vector<Filme> cesta = new Vector<Filme>();
    ControlaTelas ct = new ControlaTelas();

    /** Creates new form Tela1 */
    public Tela1() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        L_Imagem = new javax.swing.JLabel();
        B_LocarFilme = new javax.swing.JButton();
        B_DevolverFilme = new javax.swing.JButton();
        B_ComoFunciona = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setMinimumSize(new java.awt.Dimension(1024, 768));
        setUndecorated(true);
        getContentPane().setLayout(null);

        L_Imagem.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/tela_1-inicial.png"))); // NOI18N
        getContentPane().add(L_Imagem);
        L_Imagem.setBounds(0, 0, 1024, 768);

        B_LocarFilme.setContentAreaFilled(false);
        B_LocarFilme.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_LocarFilmeActionPerformed(evt);
            }
        });
        getContentPane().add(B_LocarFilme);
        B_LocarFilme.setBounds(90, 210, 230, 370);

        B_DevolverFilme.setContentAreaFilled(false);
        B_DevolverFilme.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_DevolverFilmeActionPerformed(evt);
            }
        });
        getContentPane().add(B_DevolverFilme);
        B_DevolverFilme.setBounds(400, 210, 220, 370);

        B_ComoFunciona.setContentAreaFilled(false);
        B_ComoFunciona.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_ComoFuncionaActionPerformed(evt);
            }
        });
        getContentPane().add(B_ComoFunciona);
        B_ComoFunciona.setBounds(700, 210, 230, 380);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void B_LocarFilmeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_LocarFilmeActionPerformed
        new Tela2(cesta).setVisible(true);
        ct.FechaTelas(this);
    }//GEN-LAST:event_B_LocarFilmeActionPerformed

    private void B_DevolverFilmeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_DevolverFilmeActionPerformed
        new Tela5().setVisible(true);
        ct.FechaTelas(this);
    }//GEN-LAST:event_B_DevolverFilmeActionPerformed

    private void B_ComoFuncionaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_ComoFuncionaActionPerformed
        new Tela6().setVisible(true);
        ct.FechaTelas(this);
    }//GEN-LAST:event_B_ComoFuncionaActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {

            public void run() {
                new Tela1().setVisible(true);
            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton B_ComoFunciona;
    private javax.swing.JButton B_DevolverFilme;
    private javax.swing.JButton B_LocarFilme;
    private javax.swing.JLabel L_Imagem;
    // End of variables declaration//GEN-END:variables
}
